[index]

ScaleToFit Property

Syntax

set the scaleToFit of <bitmap> to <boolean> Applies to bitmaps

Description

The scaleToFit property controls the scaling of an image in a bitmap. If the scaleToFit property is set to true, then the image in the bitmap scales to the size and aspect ratio of the bitmap size. If scaleToFit is set to false, the image is displayed at full size and aspect ratio and is cropped to fit inside the bitmap.

Notes

ScaleToFit affects only the display of the bitmap on the screen; it does not change the bitmap as it is stored in the stack file or database. ScaleToFit affects only the display of the bitmap on the screen; it does not change the bitmap as it is stored in the stack file or database.

Examples

set the scaleToFit of bmp "test" to true The graphic scales to the bitmap. Now type this line in the Message Box and press Enter: set the scaleToFit of bmp "test" to false
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.